package com.jerkin.start;

import com.jerkin.facade.UserFacade;
import com.jerkin.handler.RpcServerHandler;
import com.jerkin.init.InitInterfaceInfo;
import com.jerkin.server.RpcServer;
import com.jerkin.service.UserFacadeImpl;

/**
 * @version V1.0
 * @ClassName: RpcStart
 * @Description:
 * @author: huhongzhi
 * @date: 2021/4/22 23:46
 */
public class RpcStart {

    public static void main(String[] args) {
        InitInterfaceInfo.putInterfaceInfo("UserFacade", UserFacadeImpl.class);
        RpcServerHandler rpcServerHandler = new RpcServerHandler();
        RpcServer.start("127.0.0.1",9999,rpcServerHandler);
    }
}
